﻿package social.VKontakte
{	
	public class VKUsersRequest extends VKAPIRequest
	{
		private var FUSers:Vector.<String>;
		private var FFields:Vector.<String>;
		
		public function VKUsersRequest():void
		{
			FUSers = new Vector.<String>;
			FFields = new Vector.<String>;			
		}
		
		public function AddUser(AField:String):void
		{
			FUSers.push(AField);
		}
		
		public function AddField(AField:String):void
		{
			FFields.push(AField);
		}
		
		override public function toAPI():Object
		{
			var vResult:Object = new Object();
			vResult.uids = FUSers.toString();
			vResult.fields = FFields.toString();
			return vResult;
		}		
	}	
}
